/**
 * @file      wprocess.h
 * @copyright Copyright (c) 2020, ZCW Co., Ltd. All Rights Reserved.
 * @brief     brief
 * @author    caiwang213@qq.com
 * @date      2020-10-15 13:53:49
 *
 * @note
 *  wprocess.h defines
 */
#ifndef __WPROCESS_H__
#define __WPROCESS_H__
#include "iprocess.h"

namespace log4x
{
class wprocess : public iprocess
{
public:
    wprocess();
    virtual ~wprocess();

protected:
    virtual int        pid() override;
    virtual int        pids(const string& pname, vector<int>& pids, vector<string>& cmdLines) override;
    virtual int        pids(const string& workdir, map<int, string>& procs) override;

    virtual string     ppath(int pid) override;
    virtual int        system(const string& path_cmd) override;
    virtual int        system(const string& path_cmd, string& result) override;
    virtual string     cmdline(int pid = -1) override;

private:
};
}
#endif
